package com.wuzao;

import lombok.Data;
import org.junit.Test;

public class enumList {
    enum Day {
        SUNDAY("1", "sun"), MONDAY("2", "mon");
        private String value;
        private String name;

        Day(String value, String name) {
            this.value = value;
            this.name = name;
        }
    }

    @Test
    public void testEnum(){

        System.out.println(Day.valueOf("SUNDAY"));
        System.out.println(Day.SUNDAY);
    }
}
